package com.it.flowable.entity.leave;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("act_flw_main_leave")
public class ActFlwMainLeaveVO implements Serializable {

    private static final long serialVersionUID = -3422362096208169184L;

    /**
     * 主键
     */
    @TableId(value = "C_ID", type = IdType.ASSIGN_UUID)
    @JsonProperty("cId")
    private String cId;

    @TableField("C_MAIN_ID")
    @JsonProperty("cMainId")
    private String cMainId;

    /**
     * 0 初始态 1 完成 2 处理中
     */
    @TableField("C_CASE_STATE")
    @JsonProperty("cCaseState")
    private String cCaseState;

    @TableField("T_CRT_TM")
    @JsonProperty("tCrtTm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tCrtTm;

    @TableField("T_UPD_TM")
    @JsonProperty("tUpdTm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tUpdTm;

}
